package ssf.app.action.sys;

import javax.servlet.http.*;

import org.apache.struts.action.*;

import ssf.app.action.BaseAction;
import ssf.core.Constants;

public class LogoutAction extends BaseAction {

	@Override
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		request.getSession().removeAttribute(Constants.LOGIN_USER);
		request.getSession().invalidate();
		return mapping.findForward("Logout");
	}

}
